﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Mappings;

namespace Apollo.Modules.Commissioning
{
    [NHibernateEntity(Table = "tmp_early_laps_total")]
    public class EarlyLapse
    {
        public EarlyLapse() { }

        [PrimaryKey]
        public virtual int Id { get; set; }


        [BelongsTo(Column = "ID_Employee")]
        public virtual Employee Employee { get; set; }

        [BelongsTo(Column = "ID_Position")]
        public virtual Position Position { get; set; }

        [BelongsTo(Column = "ID_CommissionCalculation")]
        public virtual CommissionCalculation CommissionCalculation { get; set; }

        [BelongsTo(Column = "ID_Role")]
        public virtual Role Role { get; set; }

        [Property]
        public virtual double? GWP_LapsPaidup { get; set; }

        [Property]
        public virtual double? GWP_Total { get; set; }

        [Property]
        public virtual double? Early_Laps { get; set; }


        [Property(Column = "ISConsultant")]
        public virtual bool? IsConsultant { get; set; }
    }
}
